/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Biz;

import Dao.PathologyDAO;
import Entity.Doctor;
import Entity.Test;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author cgzf
 */
public class TestBO {

    public List<Test> getTest() throws SQLException {
        return new PathologyDAO().getAllTest();
    }

    public void addTest(Test t) throws SQLException, ClassNotFoundException, Exception {
        new PathologyDAO().AddTest(t);
    }
    
     public void deleteTest(int TestID) throws SQLException, ClassNotFoundException {
       new PathologyDAO().DeleteTest(TestID);
    }
     
        public void editTest(int TestID, String TName,int Cost) throws SQLException, ClassNotFoundException, Exception {
              new PathologyDAO().EditTest(TestID,TName,Cost);
    }
          public List<Test> searchById(int TestID) throws ClassNotFoundException, SQLException {
        return new PathologyDAO().SearchTest(TestID);
    }
        
    
    
}
